package com.powernode.work.controller;

import com.powernode.commons.utils.ResponseData;
import com.powernode.work.service.ContactService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("contact")
@Api(tags = "联系人维护")
public class ContactController {
    @Autowired
    private ContactService service;
    @GetMapping("getContactsByCustomerId")
    @ApiOperation("根据客户查询联系人")
    public ResponseData getContactsByCustomerId(String customerId){
        return service.findByCustomerId(customerId);
    }
}
